home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / memory / slow.a < prev   
Text File  |  1994-02-01  |  786b  |  53 lines

  1.  
  2.         ;   slow.a    -slow (small) memory routines, used by
  3.         ;         startup code to keep it small
  4.         ;
  5.         ;   (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  6.  
  7.         section text,code
  8.  
  9.         ;   bcopy s,d,n
  10.         ;      4 8 12
  11.         ;
  12.         ;   bzero(d,n)
  13.  
  14.         xdef    __slow_bcopy
  15.         xdef    __slow_bzero
  16.         xdef    __slow_bset
  17.  
  18.         xdef    _hyper__slow_bcopy
  19.         xdef    _hyper__slow_bzero
  20.         xdef    _hyper__slow_bset
  21.  
  22. _hyper__slow_bcopy:
  23. __slow_bcopy:
  24.         move.l    4(sp),A0
  25.         move.l    8(sp),A1
  26.         move.l    12(sp),D0
  27.         beq    l10
  28. l1        move.b    (A0)+,(A1)+
  29.         subq.l    #1,D0
  30.         bne    l1
  31. l10        move.l    8(sp),D0
  32.         rts
  33.  
  34. _hyper__slow_bset:
  35. __slow_bset:    move.b    12+3(sp),D1
  36.         bra    lxgo
  37.  
  38. _hyper__slow_bzero:
  39. __slow_bzero:
  40.         moveq.l #0,D1
  41. lxgo        move.l    4(sp),A0
  42.         move.l    8(sp),D0
  43.         beq    lx2
  44. lx1        move.b    D1,(A0)+
  45.         subq.l    #1,D0
  46.         bne    lx1
  47. lx2        move.l    4(sp),D0
  48.         rts
  49.  
  50.  
  51.         END
  52.  
  53.